//
//  ComBtn.m
//  DZPoker
//
//  Created by Echo on 13-11-5.
//  Copyright (c) 2013年 Echo. All rights reserved.
//

#import "ComBtn.h"

@implementation ComBtn
@synthesize object, title, _id, gold, silver;
+(ComBtn*)btnWithFont:(int)font;
{
    ComBtn *button = [[ComBtn alloc] init];
    button.backgroundColor = [UIColor clearColor];
    button.titleLabel.font = [UIFont boldSystemFontOfSize:font];
    return button;
}
+(ComBtn*)btnWithImg:(UIImage*)img{
    ComBtn *button = [[ComBtn alloc] init];
    button.backgroundColor = [UIColor clearColor];
    if (img) {
        [button setImage:img forState:UIControlStateNormal];
    }
    return button;
}
+(ComBtn*)btnWithBgImg:(UIImage*)img{
    ComBtn *button = [[ComBtn alloc] init];
    button.backgroundColor = [UIColor clearColor];
    if (img) {
        [button setBackgroundImage:img forState:UIControlStateNormal];
    }
    return button;
}
+(ComBtn*)btnWithFont:(int)font title:(NSString*)title;
{
    ComBtn *button = [[ComBtn alloc] init];
    button.backgroundColor = [UIColor clearColor];
    [button setTitle:title forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:font];
    return button;
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}


@end
